// 
// Main.ts
// Author:qiuchun(362460803@qq.com)
// Time:2023.06.18 02:16:43
// Desc:初始化，启动文件
//
import { _decorator, Component, Node } from 'cc';
import Facade from '../lib/mvp/Facade';

import { LoginPresenter } from './login/LoginPresenter';
import { LoginProxy } from './login/LoginProxy';
const { ccclass, property } = _decorator;

@ccclass('Main')
export class Main extends Component {
    start() {
        let facade = Facade.getInstance();
        //presenter
        facade.registerPresenter("LoginPresenter", new LoginPresenter());


        //proxy
        facade.registerProxy("LoginProxy", new LoginProxy());
    }

}


